package com.sky.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.Result;
import com.sky.vo.DishPageVO;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * <p>
 * 菜品 服务类
 * </p>
 *
 * @author xieminghui
 * @since 2023-11-16
 */
public interface IDishService extends IService<Dish> {

    Result<DishPageVO> findDishPage(DishPageQueryDTO dishPageQueryDTO);

    Result<String> saveDish(DishDTO dishDTO);

    Result<String> updateDish(DishDTO dishDTO);

    Result<DishVO> findById(Long id);

    Result<String> enableDisable(String status, Long id);

    Result<String> deleteDish(List<Long> ids);

    Result<List<DishVO>> findDishByCategory(Integer categoryId);
    /**
     * 用户端条件查询菜品和口味
     * @param
     * @return
     */
    Result<List<DishVO>> listWithFlavor(Long categoryId);
}
